#include "sem.hpp"
int main()
{
    std::shared_ptr<SemaphoreBuilder> sem_builder = std::make_shared<SemaphoreBuilder>();

    //定义指挥者
    std::shared_ptr<Director> direct = std::make_shared<Director>();
    direct->construct(sem_builder,CREATE_SEM,1,{1},0666);
    auto sem = sem_builder->GetSemaphore();
    sem->P(0);
    sem->V(0);
}